<template>
  <el-config-provider :locale="locale">
    <router-view></router-view>
  </el-config-provider>
</template>

<script>
import { defineComponent } from 'vue'
import { ElConfigProvider } from 'element-plus'

import en from 'element-plus/es/locale/lang/en'
import useDataMapStore from '@/store/modules/dataMap'

export default defineComponent({
  name: 'APP',
  components: {
    ElConfigProvider,
  },
  setup() {
    // 设置航次缓存数据
    //useDataMapStore().initDataMap([{ key: 'vessels', api: '/shipping/vessel/list' }])

    return {
      locale: en,
    }
  },
})
</script>
